package com.cherrypt.api.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cherrypt.api.common.exception.TipException;
import com.cherrypt.api.model.dataobject.Category;
import com.cherrypt.api.model.dto.CategoryDto;

import java.io.IOException;
import java.util.List;

/**
 * @author intent
 * @date 2019/8/3 14:23
 * @about <link href='http://zzyitj.xyz/'/>
 */
public interface CategoryService extends IService<Category> {
    void saveRedisCategoryList(List<CategoryDto> categoryList);

    CategoryDto getRedisCategory(int cid);

    List<CategoryDto> getRedisCategoryList();

    List<CategoryDto> getCategoryList() throws TipException, IOException;

    CategoryDto getCategory(int cid) throws TipException, IOException;
}
